<!---
	fusebox.init.cfm is included by the framework at the start of every request.
	It is included within a cfsilent tag so it cannot generate output. It is
	intended to be for per-request initialization and manipulation of the
	Fusebox fuseaction variables.
	
	You can set attributes.fuseaction, for example, to override the default
	fuseaction.
	
	A typical usage is to set "self" and "myself" variables, as shown below,
	for use inside display fuses when creating links.
--->
<cfset self = "index.cfm" />
<cfset myself = "#self#?#myFusebox.getApplication().fuseactionVariable#=" />

<!--- component initialization --->
<cfif structKeyExists(URL,"reload")>
	<cfset structDelete(application,"projects") />
	<cfset structDelete(application,"builds") />
</cfif>
<cfif not structKeyExists(application,"projects")>
	<cflock name="#application.applicationName#_projects" type="exclusive" timeout="10">
		<cfif not structKeyExists(application,"projects")>
			<cfset application.projects = createObject("component","antfarm.model.projects").init() />
		</cfif>
	</cflock>
</cfif>
<cfif not structKeyExists(application,"builds")>
	<cflock name="#application.applicationName#_builds" type="exclusive" timeout="10">
		<cfif not structKeyExists(application,"builds")>
			<cfset application.builds = createObject("component","antfarm.model.builds").init() />
		</cfif>
	</cflock>
</cfif>